package chixing.day13.homework.work5;

import java.util.HashMap;
import java.util.Map;

public class HashMapTest {
    public static void main(String[] args) {
        Map<String,Integer> map = new HashMap<>();
        map.put("宝洁",876);
        map.put("联合利华",652);
        map.put("小米",98876);
        map.put("华为",12354);

        for (Map.Entry<String,Integer> entry: map.entrySet()) {
            System.out.println(entry.getKey() + ": " + entry.getValue());
        }

    }
}
